﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entities;
using FluentNHibernate.Mapping;

namespace Database.Mappings
{
    public class QuestionMapping:ClassMap<Question>
    {
        public QuestionMapping()
        {
            Id(x => x.Id);
            Map(x => x.MediaData);
            References(x => x.Chapter);
            HasMany(x => x.Answers).Not.LazyLoad();
        }
    }
}
